package com.jic.member.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.MememberLegalRuleLogistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员等级管理-权益规则-物流权益表
 * @author : 
 * @email : 
 * @since : 2020-04-02 07:52:17
 * @version : v1.0.0
 */
@Mapper
public interface  MememberLegalRuleLogisticsMapper {

    long insert(MememberLegalRuleLogistics mememberLegalRuleLogistics);

    long delete(Long id);

    long update(MememberLegalRuleLogistics mememberLegalRuleLogistics);

    MememberLegalRuleLogistics queryByPrimaryKey(Long id);

    List<MememberLegalRuleLogistics> query(MememberLegalRuleLogistics mememberLegalRuleLogistics);

    List<MememberLegalRuleLogistics> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberLegalRuleLogistics") MememberLegalRuleLogistics mememberLegalRuleLogistics);

    long queryPageCount(MememberLegalRuleLogistics mememberLegalRuleLogistics);

    MememberLegalRuleLogistics queryInfoByLegalRuleId(@Param("legalRuleId") Long legalRuleId);


    void updateByLegalRuleId(MememberLegalRuleLogistics memLegalRuleLogistics);
}